package bavaria.hightech.testit;

import bavaria.hightech.banking.account.Account;
import bavaria.hightech.banking.account.AccountType;
import bavaria.hightech.banking.bank.AccountNotFoundException;
import bavaria.hightech.banking.bank.BankImpl;
import bavaria.hightech.banking.bank.Currency;
import bavaria.hightech.banking.bank.Money;
import bavaria.hightech.banking.condition.ContractPeriod;

public class TestZeit {
	public static void main(String[] args) throws AccountNotFoundException {
		BankImpl bank = new BankImpl();
		Account konto = bank.newAccount("Kolja", AccountType.GIRO,
				ContractPeriod.ONE_YEAR);
		bank.deposit(konto.getNumber(), new Money(500, Currency.EURO), "Gehalt");
	}
}
